//
//  InsertViewController.h
//  primoPrj
//
//  Created by Giuseppe on 15/11/13.
//
//

#import <UIKit/UIKit.h>
#import <MobileCoreServices/UTCoreTypes.h>
#import "insertDelegate.h"
#import "ListViewController.h"
#import "DateViewController.h"
#import "AppDelegate.h"
#import <EventKit/EventKit.h>


@interface InsertViewController : UIViewController <UITextFieldDelegate,UIImagePickerControllerDelegate, UINavigationControllerDelegate>

{
    Element * _element;;
    UITextField *txtNome;
    UITextField *txtDescrizione;
    UITextField *txtOrigine;
    UITextField *txtAllarme;
    UIButton *clearButton;
    UIButton *saveButton;
    UIButton *photoButton;
    UIButton *alarmButton;
    UIImageView *imgView;
    NSString *elemImage;
    __weak id <InsertDelegate> _delegate;
}

@property(nonatomic,weak) id <InsertDelegate> delegate;
@property (strong, nonatomic) EKEventStore *eventStore;


- (void)clearBtnPressed;
- (void)saveBtnPressed;
- (BOOL)browseImage;
- (id)initWithElement:(Element *)element ;

@end

